package com.bstek.pms.tools.service;

import com.bstek.pms.tools.dao.UserDao;
import com.bstek.pms.tools.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserDao userDao;

    /**
     * 根据条件查询用户
     * @param user
     * @return
     */
    public User queryUser(User user){
        return userDao.findUserByName(user);
    }

}
